<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
    </head>
        <title></title>
        <body>
            <script>
                    let m = new Map();
                    console.log(m);
                    //1.添加元素
                        // m.set("name","盖聂");
                        // m.set("称号",()=>{
                        //     console.log("帝国第一剑客！");
                        // });
                        // let o = {
                        //     school:"鬼谷"
                        // };
                        // m.set(o,["大叔","盖先生"]);
                        // console.log(m);
                    //2.大小
                    // console.log(m.size);
                    //3.删除
                    // m.delete("name");
                    // console.log(m);
                    //4.获取
                    // console.log(m.get("name"));
                    //5.清空
                    console.log(m.clear());
            </script>
        </body>
</html>